<table cellspacing="0" cellpadding="0" style="table-layout: fixed" id="smslist">
  <thead>
  <tr>
    <td class="selector">&nbsp;</td>
    <th>标题</th>
    <td class="user">#if($type=="inbox")来自#else 发送到 #end</td>
    <td class="time">时间</td>
    <td width="100">操作</td></tr></thead>
  <tbody>
  	 #if($null.isNull($msgs) || $msgs.size()==0)
  	<tr>
    <td colspan="5">没有记录</td>
	</tr>
   #else
  #foreach($msg in $msgs)
  <tr #if($msg.state=="N") style="font-weight:bold;" #end>
    <td class="selector">
		<input type="checkbox" name="msgID" value="${msg.msgid}"></td>
    <td height="22"#if($msg.state=="N") style="font-weight:bold;" #end ><a href="javascript:void(0)"  id="sms_${msg.msgid}" msgId="${msg.msgid}" #if($msg.state=="N"&&$type=="inbox") unread="Y" #else  unread="N" #end>$!msg.title</a></td>
    <td><a target="_blank" href="/forum/members/$!msg.fromuser">$!msg.fromuser</a></td>
    <td>$!date.format("yyyy-MM-dd HH:mm:ss",$!msg.createtime)</td>
    <td>#if($type=="inbox")[&nbsp;<a href="/forum/members/smsList/smscompose?subject=Re:$!{msg.title}&userId=$!{msg.fromuser}">回复</a>&nbsp;]#end 
		[&nbsp;<a href="/forum/members/smsList/smscompose?subject=Fw:$!{msg.title}&msgId=${msg.msgid}">转发</a>&nbsp;]</td></tr>
  <tr style="display:none;" id="msg_${msg.msgid}_div" class="row"><td class="selector">&nbsp;</td><td colspan="4" class="smsmessage">$!msg.message</td></tr>
   #end
   #end
</tbody></table>
 #if($null.isNull($msgs) || $msgs.size()==0)
 #else
<div class="management"><label><input type="checkbox" name="chkall"  id="chkall" class="checkbox"> 全选</label><button type="submit" name="smssend">删除</button></div>
#end
#if($pageCount==1)
 #else
 #parse("/board/_pager.html")
 #end

<div class="remark"><img src="/resource/notice.gif" border="0" align="absmiddle"> &nbsp;收件箱最大容量: 50</div>
<script type="text/javascript">
	var pagesCount=$pageCount;
	var pageIndex=$pageIndex;

	</script>
#includeJs(["jquery.jqpagination.min","sms/sms"])
#includeCss(["jqpagination"])
